package com.atzon.service;

import com.atzon.model.User;
import com.atzon.model.UserFocus;

import java.sql.SQLException;
import java.util.Date;
import java.util.List;
import java.util.Map;

public interface UserService {
    void addLook(Integer uId);
    void delFocus(Integer id);
    void repassword(String pass,String email);
    void reLogin(Date rtime, Integer user_id);
    void addFocus(Integer userId,Integer focusid);
    void updateUserImg(Integer userId, String path);
    void modMyInfo(Integer userId,String realName,String age,String phone,String sex,String secret,String dept);
    long findTotalUserCount(String search);
    long findTotalFocusCount(Integer userId);
    User findUserById(String id) throws SQLException;
    User findUserByName(String name) throws SQLException;
    User findUserByEmail(String email) throws SQLException;
    UserFocus findFocus(Integer userId, Integer focusid);
    Integer addUser(User user);
    Map<String, Object> getDetail(Integer userId);
    Map<String,Object> findUserBaseById(Integer userId);
    List<Object[]> findUsers();
    List<Map<String, Object>> getFocus(Integer userId,int page);
    List<Map<String, Object>> findList(Integer userId,int page,String search);
}
